package com.boot.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.boot.demo.dao.UserDao;
import com.boot.demo.entity.User;
import com.boot.demo.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	//注入dao
	@Autowired
	private UserDao userDao;

	@Override
	public List<User> getAllUser() {
		return userDao.findAllUser();
	}

}
